<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,  initial-scale=1.0, user-scalable=0, minimum-scale=1.0,  maximum-scale=1.0" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <title>{$name}的日志</title>
    <link rel="stylesheet" href="__PUBLIC__/css/style.css" media="screen" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/css/public.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/font-awesome.min.css"/>
    <link rel='stylesheet' href='__PUBLIC__/css/bootstrap.css' type='text/css' media='all' />
    <script type='text/javascript' src='__PUBLIC__/js/jquery-2.1.1.min.js'></script>
    <script type='text/javascript' src='__PUBLIC__/js/bootstrap.js'></script>
</head>
<body>
    <div class="container">
            <include file='Common:header'/>
        <div class="cgx-txt">
        <div class="blog-user">
        <foreach name='user' item='v'>
            <span  class="randcolor"><a href="{:U('/Home/Blog/index', array('uid' => $v['id']))}">{$v.name}</a></span>
        </foreach>
        </div>
        <h1><i class="fa fa-star"></i>{$name}的日志</h1>
            <div class="cgx-sbox">
                <ul class="cgx-txt-box clearfix">
                <foreach name='myblog' item='v' key='i'>
                    <li>
                        <div class="cgx-sbox-top">
                            <h2 style="background:#63BB47;"><?php echo $i+1; ?></h2>
                            <a href="{:U('/Home/Blog/look', array('id' => $v['id']))}"><p>{$v.title}</p></a>
                        </div>
                        <div class="cgx-sbox-bottom">
                            <p>
                            <span><i class="fa fa-user"></i>{$v.author}</span>
                            <span class="blog-box-ico"><i class="fa fa-thumbs-up"></i>{$v.top}</span>
                            <span class="blog-box-ico"><i class="fa fa-eye"></i>{$v.visits}</span>
                            <span class="blog-box-ico"><i class="fa fa-clock-o"></i>{$v.time|date='Y-m-d', ###}</span>
                            </p>
                        </div>
                    </li>
                </foreach>
                </ul>
                    <div class="msg-page">
                        <div class="page">{$page}</div>
                    </div>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/js/index.js"></script>
</body>
</html>